package com.example.easybuy.pojo;

import org.apache.commons.math3.stat.descriptive.summary.Product;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Productcategory {

    private int id;
    //商品名称
    private String name;
    //父级目录id
    private int parentId;
    //商品类型级别
    private int type;
    //商品类型图标
    private String icon;
    //父级目录名称
    private String className;

//    一级分类的商品
    private List<Products> oneClassGoods;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getType() {
         return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<Products> getOneClassGoods() {
        return oneClassGoods;
    }

    public void setOneClassGoods(List<Products> oneClassGoods) {
        this.oneClassGoods = oneClassGoods;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "Productcategory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", type=" + type +
                ", icon='" + icon + '\'' +
                ", className='" + className + '\'' +
                ", oneClassGoods=" + oneClassGoods +
                '}';
    }
}
